<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
 
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix='fmt'%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql" %>

<%
String[] List = {"1","2","3","4"};

request.setAttribute("strs", List);

String html = "<!DOCTYPE>"
             +"<html>"
		     +"<head>"
             +"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">"
	         +"<title>Insert title here</title>"
             +"</head>"
	         +"<body>"
             +"</body>"
           	 +"</html>";

request.setAttribute("html", html);
%>
<!DOCTYPE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>


<table>
<tr>
  <th>var</th>
  <th>status.current||status.index||status.count||status.first||status.last||||status.begin||status.end||status.step||</th>
</tr>
<c:forEach var="cVar" varStatus="status" begin="2" step="3"  end="15">
<tr>
   <td>${cVar}</td>
   <td>${status.current}||${status.index}||${status.count}||${status.first}||${status.last}||${status.begin}||${status.end}||${status.step}</td>
</tr>
</c:forEach>
</table>

<c:forEach var="s" items="${strs}">${s}</c:forEach>
${fn:length(strs)}


<jsp:useBean id="now" class="java.util.Date"></jsp:useBean>

<fmt:formatDate value="${now}" type="both" pattern="EEEE, MMMM d, yyyy HH:mm:ss Z"/> 

<c:set var="abc" value="${fn:split('a,b,c,d,e,f,g', ',')}" />
<c:forEach var="s" items="${abc}">${s}|</c:forEach>

<br>
 
<c:out value="${html}" escapeXml="false"></c:out>
 
<br>
<c:out value="${html}" escapeXml="true"></c:out>

</body>
</html>